package com.golden.management.service;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.golden.management.domain.EmployeeDO;
import com.golden.management.domain.ResultDO;
import com.golden.management.query.EmployeeExample;

/**
 * @author 伟大的 Great emperor of Reading.Reagan
 * @Description:用户管理接口
 */
@RestController
@RequestMapping("/api")
public interface IEmployeeService {
	
	@PostMapping("/employee")
	public ResultDO add(@RequestBody EmployeeDO domain);
	
	@DeleteMapping("/employee/{id}")
	public ResultDO delete(@PathVariable(value = "id") Integer id);
	
	@PostMapping("/employee")
	public ResultDO edit(@RequestBody EmployeeDO domain);
	
	@GetMapping("/employee/{id}")
	public ResultDO get(@PathVariable(value = "id") Integer id);
	
	@PostMapping("/employees")
	public ResultDO query(@RequestBody EmployeeExample example);
}
